package com.xuerhua.yxt.dao;

import java.util.List;

import com.xuerhua.yxt.model.OrganizeGroup;
import com.xuerhua.yxt.model.TeacherInfo;
import com.xuerhua.yxt.page.Page;
import org.apache.ibatis.annotations.Param;

public interface OrganizeGroupMapper {

    int insertSelective(OrganizeGroup record);

    OrganizeGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrganizeGroup record);

    List<OrganizeGroup> selectListByPage(Page<OrganizeGroup> page);
    
    List<OrganizeGroup> selectListByParam(OrganizeGroup record);
    
    List<OrganizeGroup> selectListByGroupIds(@Param("schoolId")Integer schoolId, @Param("list") List<String> list);
    
    int isLeaderGroup(Integer teacherId);
    
    int isCourseApprovalGroup(Integer teacherId);
    
    List<TeacherInfo> selectCourseApprover();
    //查询级长、科长
    List<TeacherInfo> selectSubjectGradeTeacher();
    //查询行政、级长、科长
    List<TeacherInfo> selectManageSubjectGradeTeacher();
}